home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / demo / medmfc.zip / CHANGES.DOC < prev    next >
Text File  |  1994-08-17  |  3KB  |  139 lines

  1. 7/15/94
  2. -------
  3.  
  4. Added ME_INSERTSTRING message
  5. -----------------------------
  6.  
  7. ME_INSERTSTRING
  8.   Inserts a string into the editor at the current position.
  9.  
  10. Parameters
  11.   wParam is ME_OVERSTRIKE_MODE if you want to overstrike the existing
  12.     text at the current position in the buffer. Any other value of 
  13.     wParam will insert the text at the current position in the buffer.
  14.   lParam is a far pointer to the text to insert. The text may have
  15.     embedded tab characters (\t) or newlines (\n).
  16.  
  17. Returns
  18.   TRUE if the text was inserted, FALSE if not.
  19.  
  20. Example
  21.  
  22.   SendMessage(hWndEdit, ME_INSERTSTRING, ME_INSERT_MODE,
  23.               (LONG) (LPSTR) "This is line 1\nAnd this is line 2\n");
  24.  
  25.  
  26. Added WM_PARENTNOTIFY message
  27. -----------------------------
  28. The edit control sends its ancestors the WM_PARENTNOTIFY message.
  29. See the Windows SDK documentation for more information on this
  30. message.
  31.  
  32.  
  33. 7/21/94
  34. -------
  35.  
  36. Added SEARCH_SELECTMATCH option to the Searching options.
  37. If this is true, then the matched text is highlighted and selected.
  38.  
  39.  
  40. Added some Chicago style messages :
  41.  
  42. EM_EXGETSEL
  43.   wParam is 0
  44.   lParam is a far pointer to a CHARRANGE structure
  45.  
  46. EM_GETSELTEXT
  47.   wParam is 0
  48.   lParam is a far pointer to a buffer which the text will be placed into
  49.  
  50. EM_EXSETSEL
  51.   wParam is 0
  52.   lParam is a far pointer to a CHARRANGE structure
  53.  
  54. EM_EXLINEFROMCHAR
  55.   wParam is 0
  56.   lParam is index
  57.  
  58. EM_SETBKGNDCOLOR
  59.   wParam is TRUE to use system color, FALSE for RGB value in lParam
  60.   lParam is the RGB value
  61.   Returns: the old background color
  62.  
  63.  
  64. 8/3/94
  65. ------
  66.  
  67. Changes to ME_TOGGLEWORDWRAP
  68.  
  69. wParam can be
  70.   WORDWRAP_OFF      - turns wordwrap off
  71.   WORDWRAP_ON       - turns wordwrap on
  72.   WORDWRAP_TOGGLE   - toggles wordwrap mode
  73.  
  74.  
  75. Added ME_REMOVEBOOKMARK
  76.  
  77. ME_REMOVEBOOKMARK
  78.  
  79. Removes one or more bookmarks from the editing buffer.
  80.  
  81. wParam is the letter of the bookmark. It can be 'a' through 'z'. If
  82.   wParam is the special value BOOKMARK_REMOVEALL, then all of the
  83.   bookmarks associated with the editing buffer will be removed.
  84. lParam is not used
  85.  
  86. Returns
  87.   TRUE
  88.  
  89.  
  90. 8/8/94
  91. ------
  92. Added WM_SETREDRAW message
  93.  
  94. WM_SETREDRAW
  95.  
  96. Sets the refresh state of the buffer.
  97.  
  98. Parameters
  99.   wParam can be zero or non-zero. If it is zero, then buffer refreshes
  100.     will be disabled. This means that mulitple editing operations can
  101.     be performed without the buffer refreshing the window after each
  102.     operation. If wParam is non-zero, then refreshing will be enabled.
  103.   lParam is not used.
  104.  
  105. Returns
  106.   Nothing
  107.  
  108.  
  109. Giving the Parent a Shot at Messages
  110. ------------------------------------
  111.  
  112. Before the editor control processes the following messages :
  113.  
  114. WM_MBUTTONDOWN
  115. WM_RBUTTONDOWN
  116. WM_LBUTTONDBLCLK
  117. WM_MBUTTONDBLCLK
  118. WM_RBUTTONDBLCLK
  119.  
  120. it first sends these messages up to the parent. If the parent processes
  121. these messages, it should return a non-zero value to the editor control.
  122. If it returns 0 to the editor, then the editor will take its default
  123. action for these messages.
  124.  
  125. Example :
  126.  
  127.    In the parent's window procedure :
  128.  
  129.   case WM_RBUTTONDOWN :
  130.     PopupMyMenu(); /* Put up a popup menu */
  131.     return TRUE;   /* Yes, I processed it */
  132.  
  133.   case WM_MBUTTONDOWN   :
  134.   case WM_LBUTTONDBLCLK :
  135.   case WM_MBUTTONDBLCLK :
  136.   case WM_RBUTTONDBLCLK :
  137.     return FALSE;
  138.  
  139.